/*#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int i = 1;
	scanf("%d", &i);
	if (i % 5 == 0)
	{
		printf("YES");
	}
	else
		printf("NO");

	return 0;
}*/
/*#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int x, y;
	scanf("%d", &x);
	if (x < 0)
	{
		printf("1");
	}
	else if (x == 0)
	{
		printf("0");
	}
	else
	{
		printf("-1");
	}
	return 0;

}*/
/*#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int seconds = 0,hour,miniute;
	scanf("%d", &seconds);
	hour = seconds / 3600;
	miniute = seconds % 3600 / 60;
	seconds = seconds % 3600 % 60;
	printf("%d %d %d", hour, miniute, seconds);
	return 0;
}*/
/*#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int a, b,c,d;
	scanf("%d %d", &a,&b);
	c = a / b;
	d = a % b;
	printf("%d %d", c, d);
	return 0;
}*/
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int y,a=40,c=212;
	y = (-8 + 22) * a - 10 + c / 2;
	printf("%d", y);
	return 0;
}
